package com.xzy.fruitmall.impl;

import com.xzy.fruitmall.CustomerService;
import com.xzy.fruitmall.entity.CustomerInfo;
import com.xzy.fruitmall.mapper.CustomerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerServiceImpl implements CustomerService {
    @Autowired
    private CustomerMapper customerMapper;
    @Override

    public List<CustomerInfo> findAllCustomer() {
        return customerMapper.findAllCustomer();
    }
<<<<<<< HEAD

    @Override
    public CustomerInfo LoginByAccount(String customerAccount, String customerPass) {
        return customerMapper.LoginByAccount(customerAccount,customerPass);
    }

    @Override
    public CustomerInfo LoginByTel(String customerTel, String customerPass) {
        return customerMapper.LoginByAccount(customerTel,customerPass);
    }

    @Override
    public CustomerInfo LoginByYZM(String customerTel) {
        return null;
    }
=======
>>>>>>> dbe6601a6a4536f25b918bd28439b68a68e76609
}
